package com.gym.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gym.dao.FoodMapper;
import com.gym.pojo.Food;
import com.gym.service.FoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FoodServiceImpl extends ServiceImpl<FoodMapper, Food> implements FoodService {

    @Autowired(required = false)
    FoodMapper foodMapper;

    @Override
    public Food queryByfoodName(String foodName) {
        return foodMapper.queryByfoodName(foodName);
    }
}
